package com.secxiot.provider.task.entity;

import java.io.Serializable;
import java.util.Date;

public class JpushMsg implements Serializable {
    private Long id;

    /**
     * 消息id
     */
    private Long msgId;

    /**
     * 发送编号
     */
    private Long sendno;

    /**
     * 推送目标
     */
    private String audience;

    /**
     * 推送平台
     */
    private String platform;

    /**
     * 通知内容体
     */
    private String notification;

    /**
     * 消息内容体
     */
    private String message;

    /**
     * 短信补充
     */
    private String smsMessage;

    /**
     * 可选参数
     */
    private String options;

    /**
     * cid
     */
    private String cid;

    /**
     * 整体参数
     */
    private String body;

    /**
     * 创建时间
     */
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMsgId() {
        return msgId;
    }

    public void setMsgId(Long msgId) {
        this.msgId = msgId;
    }

    public Long getSendno() {
        return sendno;
    }

    public void setSendno(Long sendno) {
        this.sendno = sendno;
    }

    public String getAudience() {
        return audience;
    }

    public void setAudience(String audience) {
        this.audience = audience == null ? null : audience.trim();
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform == null ? null : platform.trim();
    }

    public String getNotification() {
        return notification;
    }

    public void setNotification(String notification) {
        this.notification = notification == null ? null : notification.trim();
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public String getSmsMessage() {
        return smsMessage;
    }

    public void setSmsMessage(String smsMessage) {
        this.smsMessage = smsMessage == null ? null : smsMessage.trim();
    }

    public String getOptions() {
        return options;
    }

    public void setOptions(String options) {
        this.options = options == null ? null : options.trim();
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid == null ? null : cid.trim();
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body == null ? null : body.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", msgId=").append(msgId);
        sb.append(", sendno=").append(sendno);
        sb.append(", audience=").append(audience);
        sb.append(", platform=").append(platform);
        sb.append(", notification=").append(notification);
        sb.append(", message=").append(message);
        sb.append(", smsMessage=").append(smsMessage);
        sb.append(", options=").append(options);
        sb.append(", cid=").append(cid);
        sb.append(", body=").append(body);
        sb.append(", createTime=").append(createTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}